package vitamin.demo.utils;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import vitamin.demo.certification.mapper.AdminMapper;

/**
 * @author HAC
 */
@Slf4j
public class LoginUtils {
//    @Autowired
//    private static AdminMapper adminMapper;
    public static boolean checkPassword(String password,String correctPassword){
        if(password.equals(correctPassword)){
            return true;
        }
        return false;
    }

    public static boolean isBlank(CharSequence cs) {
        int strLen = cs.length();
        if (strLen == 0) {
            return true;
        } else {
            for(int i = 0; i < strLen; ++i) {
                if (!Character.isWhitespace(cs.charAt(i))) {
                    return false;
                }
            }

            return true;
        }
    }

}
